package com.jieshuibao.util;

import java.text.SimpleDateFormat;

import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.databind.ObjectMapper;

public class ObjectMappingCustomer extends ObjectMapper {

	private static final long serialVersionUID = 9013842404917296737L;
	private static final String DEFAULT_DATE_FORMAT = "yyyy-MM-dd HH:mm:ss";

	public ObjectMappingCustomer() {
		super();

		// 设置日期转换yyyy-MM-dd HH:mm:ss
		setDateFormat(new SimpleDateFormat(DEFAULT_DATE_FORMAT));
		setSerializationInclusion(Include.NON_NULL);
	}

}
